+Thu Feb 26 13:23:47 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
+ free() function. (#135511, George Bronnikov)
+
2004-02-26 Federico Mena Quintero <federico@ximian.com>
* configure.in: Added a comment to inform translators that they
+Thu Feb 26 13:23:47 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
+ free() function. (#135511, George Bronnikov)
+
2004-02-26 Federico Mena Quintero <federico@ximian.com>
* configure.in: Added a comment to inform translators that they
+Thu Feb 26 13:23:47 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
+ free() function. (#135511, George Bronnikov)
+
2004-02-26 Federico Mena Quintero <federico@ximian.com>
* configure.in: Added a comment to inform translators that they
+Thu Feb 26 13:23:47 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
+ free() function. (#135511, George Bronnikov)
+
2004-02-26 Federico Mena Quintero <federico@ximian.com>
* configure.in: Added a comment to inform translators that they
+Thu Feb 26 13:23:47 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
+ free() function. (#135511, George Bronnikov)
+
2004-02-26 Federico Mena Quintero <federico@ximian.com>
* configure.in: Added a comment to inform translators that they
Atom prop_type;
gint prop_length;
gint prop_format;
+ gboolean is_compound_text;
if (utf8_is_latin1 (utf8_str))
{
prop_text = gdk_utf8_to_string_target (utf8_str);
prop_length = prop_text ? strlen (prop_text) : 0;
prop_format = 8;
+ is_compound_text = FALSE;
}
else
{
utf8_str, &gdk_type, &prop_format,
&prop_text, &prop_length);
prop_type = gdk_x11_atom_to_xatom_for_display (display, gdk_type);
+ is_compound_text = TRUE;
}
if (prop_text)
PropModeReplace, prop_text,
prop_length);
- gdk_free_compound_text (prop_text);
+ if (is_compound_text)
+ gdk_free_compound_text (prop_text);
+ else
+ g_free (prop_text);
}
}